package com.test.service;

import java.util.List;

import com.test.domain.Department;


public interface DepartmentService{
	public boolean addDepartment(Department department);
	/**
	 * 修改用户信息
	 * @param department
	 * @return
	 */
	public boolean updateDepartment(Department department);
	/**
	 * 删除用户信息 
	 * @author SingleHe 2015-10-8
	 * @param department
	 * @return
	 */
	public boolean deleteDepartment(Integer id);
	/**
	 * 通过id查找用户信息
	 * @param id
	 * @return
	 */
	public Department findDepartmentById(Integer id);
	/**
	 * 查询所有用户信息
	 * @return
	 */
	public List<Department> findAll();
	/**
	 * 查找用户信息列表
	 * @param department
	 * @param firstResult
	 * @param maxResults
	 * @return
	 */
	public List<Department> SearchDepartment(Department department,int firstResult,int maxResults);
	/**
	 * 查询所有顶级部门列表
	 * @return
	 */
	public List<Department> findTopList();
	/**
	 * 查询指定部门的所有子部门列表
	 * @param id
	 * @return
	 */
	public List<Department> findChildren(Integer id);
}
